'use strict';

/* Services */

var phonecatServices = angular.module('phonecatServices', ['ngResource']);

phonecatServices.factory('Phone', ['$resource',
  function($resource){
    return $resource('phones/:phoneId.json', {}, {
      query: {method:'GET', params:{phoneId:'phones'}, isArray:true}
    });
  }]);

phonecatServices.factory('User', ['$resource',
  function($resource){
    return $resource('http://filltext.com/', {}, {
      query: {method:'GET', params:{rows: '30',avatar:'{image|10x10}',fname: '{firstName}',lname: '{lastName}',address: '{streetAddress}',email:'{email}'}, isArray:true}
    });
  }]);
